package xjtu.sad.zbsj.template;

import java.util.List;

public class Attribute {
    private Integer attrId;//属性Id
    private String attrName;//属性名
    private String attrType;//属性类型
    private Integer templateId;//模板id
    private String attrDesc;//属性描述
    private Integer attrOrder;//属性名展示熟悉怒

    private Integer update = 0;//修改时对应的不同情况,0表示没有修改,1是修改属性,2是新加属性,3是删除属性,返回值默认为0

    private List<AttributeValue> attrValues;//属性值列表
    private AttributeProperty attributeProperty;//对于属性的限制

    public Attribute() {
    }

    public Integer getAttrOrder() {
        return attrOrder;
    }

    public void setAttrOrder(Integer attrOrder) {
        this.attrOrder = attrOrder;
    }

    public Integer getUpdate() {
        return update;
    }

    public void setUpdate(Integer update) {
        this.update = update;
    }

    public String getAttrDesc() {
        return attrDesc;
    }

    public void setAttrDesc(String attrDesc) {
        this.attrDesc = attrDesc;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public AttributeProperty getAttributeProperty() {
        return attributeProperty;
    }

    public void setAttributeProperty(AttributeProperty attributeProperty) {
        this.attributeProperty = attributeProperty;
    }

    public Integer getAttrId() {
        return attrId;
    }

    public void setAttrId(Integer attrId) {
        this.attrId = attrId;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getAttrType() {
        return attrType;
    }

    public void setAttrType(String attrType) {
        this.attrType = attrType;
    }

    public List<AttributeValue> getAttrValues() {
        return attrValues;
    }

    public void setAttrValues(List<AttributeValue> attrValues) {
        this.attrValues = attrValues;
    }

    @Override
    public String toString() {
        return "Attribute{" +
                "attrId=" + attrId +
                ", attrName='" + attrName + '\'' +
                ", attrType='" + attrType + '\'' +
                ", templateId=" + templateId +
                ", attrDesc='" + attrDesc + '\'' +
                ", attrOrder=" + attrOrder +
                ", update=" + update +
                ", attrValues=" + attrValues +
                ", attributeProperty=" + attributeProperty +
                '}';
    }
}
